package com.example.teaculture.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import android.os.Bundle;

import com.example.teaculture.R;
import com.example.teaculture.adapter.LaunchAdapter;

public class LaunchActivity extends AppCompatActivity {

    private int[] launchImageArray = {R.drawable.guide_bg1, R.drawable.guide_bg2,
            R.drawable.guide_bg3, R.drawable.guide_bg4};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launch);
        ViewPager vp_content = findViewById(R.id.vp_content);
        LaunchAdapter launchAdapter = new LaunchAdapter(this,launchImageArray);
        vp_content.setAdapter(launchAdapter);
    }
}